package com.seven.sso.feign;

import com.seven.enity.Permission;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author longlong
 * @date 2024/3/6 14:33
 * description
 */
@FeignClient(value = "education-system")
public interface PermissionFeign {
    @GetMapping("/system/permission/getByUserId/{userId}")
    public List<Permission> getByUserId(@PathVariable String userId);
}
